<template>
	<view class="address">
		<view class="header">
			<view class="left">
				<image @click="goBack()" src="../../static/Icon_Arrow.png" mode=""></image>
				<text>收货地址</text>
			</view>
			<view class="right">
				<view class="pen">
					<image src="../../static/bi.png" mode=""></image>
				</view>
				<text>管理</text>
				<text @click="addAddressFn()">✙新增地址</text>
			</view>
		</view>
		<view class="content">
			<ul>
				<li>
					<view class="left">
						<view class="province">
							<text>广东省 广州市  从化区 鳌头镇</text>
						</view>
						<view class="detail">
							<text>城鳌大道东999号粤嵌科技快递点</text>
						</view>
						<view class="info">
							<text>小杨</text>
							<text>15614765235</text>
						</view>
					</view>
					<view class="right">
						<image src="../../static/pen.png" mode=""></image>
					</view>
				</li>
				<li>
					<view class="left">
						<view class="province">
							<text>广东省 广州市  从化区 鳌头镇</text>
						</view>
						<view class="detail">
							<text>城鳌大道东999号粤嵌科技快递点</text>
						</view>
						<view class="info">
							<text>小杨</text>
							<text>15614765235</text>
						</view>
					</view>
					<view class="right">
						<image src="../../static/pen.png" mode=""></image>
					</view>
				</li>
			</ul>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			goBack() {
				uni.switchTab({
					url: '/pages/my/my'
				})
			},
			addAddressFn(){
				uni.navigateTo({
					url:'/pages/addAddress/addAddress'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.header {
		width: 100%;
		height: 50px;
		background-color: white;
		display: flex;
		position: fixed;
		left: 0;
		top: 0;
		z-index: 100;
		background-color: #fff;
		justify-content: space-between;

		.left {
			width: 150px;
			// background-color: palegreen;
			display: flex;
			align-items: center;

			image {
				width: 26px;
				height: 26px;
				// background-color: paleturquoise;
			}

			text:nth-child(2) {
				font-size: 18px;
			}

		}

		.right {
			width: 140px;
			// background-color: palegreen;
			line-height: 50px;
			font-size: 15px;
			display: flex;

			.pen {
				width: 18px;
				height: 18px;
				margin-top: 4px;

				image {
					width: 100%;
					height: 100%;
				}
			}

			text:nth-child(2) {
				color: #f57a73;
				margin-right: 10px;
			}

			text:nth-child(3) {
				color: #f57a73;
			}
		}
	}

	.content {
		width: 100%;
		margin-top: 50px;

		ul {
			width: 98%;
			list-style: none;
			margin: 0;
			padding: 0;
			margin: 0 auto;

			li {
				width: 96%;
				margin: 0 auto;
				height: 80px;
				display: flex;
				justify-content: space-between;
				padding-top: 20px;
				border-bottom: 1px solid #dadada;
				
				.left {
					width: calc(100% - 30px);
					margin: 0 auto;
					font-size: 13px;
					letter-spacing: 1px;
					font-family: 中华正文;
					// background-color: palegoldenrod;
					
					.province {
						font-size: 12px;
						color: #9a9a9a;
					}
					
					.detail {
						margin-top: 3px;
						font-weight: 600;
					}
					
					.info {
						margin-top: 2px;
						font-weight: 600;
					}
				}
				
				.right {
					width: 30px;
					// background-color: palegreen;
					
					image {
						width: 18px;
						height: 18px;
						margin-top: 18px;
					}
				}
				
			}
		}
	}
</style>